﻿@model Order
@using KhoaLuan.Resources.Cart
@{
    ViewBag.Title = "Checkout";
}

@using (Html.BeginForm("Purchase", "Order"))
{
    <div class="row form-group">
        <div class="col-md-4">@Cart.KhachHang:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.CustomerId, new { @class = "form-control" })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.NgayDatHang:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.OrderDate, "{0:MM/dd/yyyy}", new { @class = "form-control", @readonly = true })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.NgayNhanHang:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.RequireDate, "{0:MM/dd/yyyy}", new { @class = "form-control" })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.NguoiNhanHang:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.Receiver, new { @class = "form-control" })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.DiaChiNhanHang:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.Address, new { @class = "form-control" })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.TongSoTien:</div>
        <div class="col-md-6">
            @Html.TextBoxFor(o => o.Amount, new { @class = "form-control", @readonly = true })
        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-4">@Cart.GhiChu:</div>
        <div class="col-md-8">
            @Html.TextAreaFor(o => o.Description, new { @class = "form-control", rows = "5" })
            

        </div>
    </div>

    <hr />
    <div class="row form-group">
        <div class="col-md-4"></div>
        <div class="col-md-6">
            <button class="btn btn-default">@Cart.ThanhToan</button>
            <a href="/Product/Index" class="btn btn-default">@Cart.QuayLaiMuaHang</a>
        </div>
    </div>
}

